package com.backend.demo1.mapper;

import com.backend.demo1.models.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PermissionMapper {

    Permission findByName(@Param("name") String name);

    void insert(Permission permission);

    List<Permission> findAll();
}
